package com.yijumao.shop.service;

import com.github.pagehelper.PageInfo;
import com.yijumao.shop.domain.Item;

import java.util.List;

/**
 * @author konley
 * @date 2020-11-02 17:21
 */
public interface ItemService {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> selectAll();

    int updateByPrimaryKey(Item record);

    //查询商品状态
    List<Item> selectByIflag(int flag);

    //根据cid、当前页码、分页大小查询商品信息
    PageInfo<Item> selectPageByCid(int cid, int pageName, int pageSize);
}
